  var address = "";
        if (navigator.geolocation) {
            navigator.geolocation.getCurrentPosition(success);
        } else {
            alert("Geo Location is not supported on your current browser!");
        }
        function success(position) {
            var lat = position.coords.latitude;
            var long = position.coords.longitude;
            var pos = lat + "," + long;
            GetLoc(pos);
        }
        function GetLoc(pos1) {
            var _data = "";
            _data = '<?xml version="1.0" encoding="utf-8"?>' +
           '<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
           '<soap:Body>' +
              '<GetUserLocation xmlns="http://tempuri.org/">' +
               '<pos>' + pos1 + '</pos>' +
              '</GetUserLocation>' +
              '</soap:Body>' +
           '</soap:Envelope>';
            $.ajax({
                type: "POST",
                url: "http://localhost:10630/UserService.asmx?op=GetUserLocation",
                data: _data,
                contentType: "text/xml; charset=utf-8",
                dataType: "xml",
                success: function (msg) {
                    //  alert(msg);
                    var result = $("GetUserLocationResult", msg);
                    //alert(result);
                    var res = $(result).text();
                    $("#MainContent_address").val(res);
                    if (res != "")
                        document.getElementById("lblLocation").innerHTML = " | Your Current Location is : " + res + " View it on <a href='Location.html?pos='" + pos1 + " target='_blank'>Map</a>";
                    else
                        document.getElementById("lblLocation").innerHTML = " | Unable to find your current location. Your location cordinates are : " + pos1 + " View it on <a href='Location.html?pos=" + pos1 + "' target='_blank'>Map</a>";
                }
            });
        }